Repeat Prescriptions
Patients can request repeat prescriptions through the patient-facing API's. Currently, this functionality is implemented as a simple copy of the existing prescription, with a new period of use attached to it.
Listing prescriptions
To list prescriptions, a GET request should be made to the <TENANT_BASE_URL>/fhir/R4/Patient/<PATIENT_ID>/MedicationRequest endpoint.
status
The status of the prescriptions to list.code
The medication code to list prescriptions for. Valid systems are HPK, GPK, PRK, and ATC.date
The date of the prescriptions to list.
For example,date=ge2025-01-01will list all prescriptions that were requested or active on or after January 1st, 2025._profile
This can be set tohttps://meditools.nl/fhir/StructureDefinition/PatientRepeatablePrescriptionto only retrieve repeatable prescriptions.
If this is not set, some of the prescriptions that might not be repeatable will be included in the response.
Repeating a prescription
To repeat a prescription, first an existing prescription needs to be identified.
Given the prescription ID, a POST request should be made to the custom FHIR operation at <TENANT_BASE_URL>/fhir/R4/Patient/<PATIENT_ID>/MedicationRequest/<PRESCRIPTION_ID>/$renew-by-patient
Data should be POSTed to the endpoint, the body of which should be a Parameters resource containing the following parameters:
effective-period
The period of use for the new prescription.
N.B. this period should be the same length as the original prescription.
require-review [optional, default true]\
Whether the new prescription requires a review by a practitioner.